package standard;

import standard.util.Utils;

/**
 * Create by Lingo
 */

public class StandardVar {
    private String apiModelProperty;
    private String type;
    private String varName;
    private int isPrimary;
    private String colName;
    private int isNullable;

    public String getApiModelProperty() {
        return apiModelProperty;
    }

    public void setApiModelProperty(String apiModelProperty) {
        this.apiModelProperty = apiModelProperty;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getIsPrimary() {
        return isPrimary;
    }

    public void setIsPrimary(int isPrimary) {
        this.isPrimary = isPrimary;
    }

    public String getColName() {
        return colName;
    }

    public void setColName(String colName) {
        this.varName = Utils.colName2VarName(colName);
        this.colName = colName;
    }

    public String getVarName() {
        return varName;
    }

    public void setVarName(String varName) {
        this.varName = varName;
    }

    public int getIsNullable() {
        return isNullable;
    }

    public void setIsNullable(int isNullable) {
        this.isNullable = isNullable;
    }
}
